package com.hua.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hua.common.utils.PageUtils;
import com.hua.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author ahua
 * @email 123456@163.com
 * @date 2021-11-15 19:20:11
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询所有分类以及子分类
     * @return
     */
    List<CategoryEntity> listWithTree();


    Long[] findCateLogPath(Long catelogId);

    void updateCascade(CategoryEntity category);
}

